package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName("t_order")
public class Order implements Serializable {


    public Order(Integer goodsId, String orderId, BigDecimal orderPrice, Integer orderCount) {
        this.goodsId = goodsId;
        this.orderId = orderId;
        this.orderPrice = orderPrice;
        this.orderCount = orderCount;
    }

    private static final long serialVersionUID = -4047319772035672798L;
    @TableId(type = IdType.AUTO)
    private Integer id;
    @TableField("goods_id")
    private Integer goodsId;
    @TableField("order_id")
    private String orderId;
    @TableField("order_price")
    private BigDecimal orderPrice;
    @TableField("order_count")
    private Integer orderCount;
}
